﻿    <script type="text/javascript">
        $(document).ready(function () {
            var p = new singlepage();
            p.c = "Way.Bus.WMS.ST.Controllers.YS.ST_CarController";
            p.applyTo = "t1";
            p.init();
        });
        function import1(data) {
            try {
                $('<div id="d2"><div id="d3"/></div>').appendTo($("#temp"));
                var p1 = new datasource();
                p1.c = "Way.Bus.Controllers.ExcelDRController";
                p1.applyTo = "d3";
                window.ddata = data;
                window.pdata = p1;
                p1.init();

                $('#d2').dialog({
                    title: "导入数据",
                    collapsible: false,
                    resizable: false,
                    width: 700,
                    height: 400,
                    cache: false,
                    href: "Views/manager/Exceldr.htm", 
                    onClose: function () {
                        $(this).panel('destroy');
                        $("#temp").empty();
                        window.ddata = null;
                    }
                });
            } catch (e) {

            }
        }
      </script>
<div id="t1"></div>